<?php if(!empty($datas)):?>
    <?php foreach($datas as $row):?>
    <div class="msg_<?php echo $row['message_id'];?>">
        <!-- 发帖人信息 -->
        <div class="container_center_user_left" style="padding-top: 10px;">
            <span><img
                <?php if($row['headimgurl'] !=''):?>
                    src="<?php echo $row['headimgurl'];?>"
                <?php else:?>
                     src="__IMG__/no.jpg"
                <?php endif;?>
                style="width: 30px;height: 30px;border-radius: 50%;"></span>
            <span><?php echo $row['user_name'];?>同学 -
                <?php if($row['user_sex']==0):?>
                未知
                <?php elseif($row['user_sex']==1):?>
                    男
                <?php elseif($row['user_sex']==2):?>
                    女
                <?php endif;?>
            </span>
        </div>
        <!-- 发帖时间 -->
        <div class="container_center_user_right" style="height: 40px;padding-top: 5px;">
            <?php echo date("Y-m-d H:i:s",$row['add_time']);?>
        </div>
        <div style="clear: both;"></div>
    <div>
        <div class="contents" style="font-size: 17px;" data-id="<?php echo $row['message_id'];?>" onclick="content(this);"><?php echo $row['con_len'];?></div>
        <?php if($row['con_count']>=100):?>
        <div class="content_ti" flag="0" onclick="con_open(this)">展开全文</div>
        <?php endIf;?>
        <input type="hidden" class="con_1" value="<?php echo $row['con_len'];?>">
        <input type="hidden" class="con_2" value="<?php echo $row['content'];?>">
    </div>
        <!-- 对帖子的操作 -->
        <div class="demo_line_02"></div>
        <div class="container container_handle_tie">
            <!-- 举报 -->
            <div class="container_handle_tie_icon_left">
                <span class="glyphicon glyphicon-bell" tie_id="<?php echo $row['message_id'];?>" onclick="jubao_view(this)" aria-hidden="true"></span>
            </div>
            <!-- 点赞、评论 -->
            <div class="container_handle_tie_icon_right">
                <!--根据like_flag判断 当前用户是否对该贴点赞过-->
                <?php if($row['like_flag']>0):?>
                    <span class="glyphicon glyphicon-heart-empty" flag="1" tie_id="<?php echo $row['message_id'];?>" style="color: red;" aria-hidden="true" onclick="click_like(this)"></span>
                <?php else:?>
                    <span class="glyphicon glyphicon-heart-empty" flag="0" tie_id="<?php echo $row['message_id'];?>" aria-hidden="true" onclick="click_like(this)"></span>
                <?php endif;?>
                <span style="font-size: 14px;display: inline;"><?php echo $row['like_num'];?></span>
                <span class="glyphicon glyphicon-comment" aria-hidden="true" tie_id="<?php echo $row['message_id'];?>" onclick="comment(this)"></span>
                <span style="font-size: 14px;display: inline;"><?php echo $row['comment_num'];?></span>
            </div>
            <div style="clear: both;"></div>
        </div>
        <div class="tie_list"></div>
    </div>
    <?php endforeach;?>
<?php endif;?>
